#include "startMovieMessage.h"
#include "jsonUtils.h"

StartMovieMessage::StartMovieMessage(MtpProtocol* packet) : MtpMessage(packet)
{

}

void StartMovieMessage::decodeBody()
{
	MtpMessage::decodeBody();
	param.fromJson(jsonContent);
}

void StartMovieMessage::encodeBody()
{
	jsonContent = param.jsonStr();
	MtpMessage::encodeBody();
}

const int64_t& StartMovieMessage::getId() const
{
	return param.getId();
}

const int64_t& StartMovieMessage::getDmId() const
{
	return param.getDmId();
}

const int& StartMovieMessage::getTest() const
{
	return param.getTest();
}
